﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yule.Common.Cache
{
    /// <summary>
    /// 缓存策略
    /// </summary>
    public interface ICacheStrategy
    {
        //bool Set(string key, object obj);
        bool Set<T>(string key, T obj) where T : class;

        //object Get(string key);

        T Get<T>(string key) where T : class;

        IList<T> Get<T>() where T : class;

        //bool Remove(string key);

        bool Remove<T>(string key) where T : class;
        bool Remove<T>() where T : class;
    }

}
